pkgname=kactivities
pkgver=5.36.0
pkgrel=1
arch="all"
pkgdesc="Core components for the KDE's Activities"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="kcoreaddons kconfig kwindowsystem qt5-qtdeclarative kio"
makedepends="extra-cmake-modules boost python doxygen qt5-qttools-dev kconfig kcoreaddons qt5-qtdeclarative-dev kio-dev boost-dev"
provides="kactivities-frameworks"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-doc"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/$pkgname-$pkgver \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DQML_INSTALL_DIR=lib/qt/qml \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="1fdbf1b55cf8525dc53454f6c1d9eacb4eb502b68cb08267e2baf03ac721048b316fc7af253d23258274200971dd840c8f79507c28662b2740e12993a5dd7b96  kactivities-5.36.0.tar.xz"
